"""
for循环
"""
# name = "张晗"
# for letter in name:
#     print(letter)

# name = "itheima is a brand of itcast"
# count = 0
# for i in name:
#     if i == "a":
#         count += 1
# print(f"共含有{count}个a")

# count = 0
# for i in range(100):
#     if i % 2 == 0:
#         count += 1
# print(f"共有{count}个偶数")

# 作用域
# i = 0
# for i in range(5):
#     print(i)
# print(i)

# for i in range(1, 10):
#     for j in range(1, i + 1):
#         print(f"{j} x {i} = {i * j}\t", end="")
#     print()


